package com.forever7776.life.core.entity.stat;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 动弹统计表
 * </p>
 *
 * @author kz
 * @since 2018-04-11
 */
@TableName("stat_tweet")
public class StatTweet extends Model<StatTweet> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 动弹ID
     */
    @TableField("tweet_id")
    private Integer tweetId;
    /**
     * 阅读数量
     */
    @TableField("read_count")
    private Integer readCount;
    /**
     * 收藏数量
     */
    @TableField("collect_count")
    private Integer collectCount;
    /**
     * 点赞数量
     */
    @TableField("praise_count")
    private Integer praiseCount;
    /**
     * 0：显示 1：隐藏
     */
    private Integer status;
    @TableField("insert_date")
    private Date insertDate;
    @TableField("last_date")
    private Date lastDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTweetId() {
        return tweetId;
    }

    public void setTweetId(Integer tweetId) {
        this.tweetId = tweetId;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StatTweet{" +
        ", id=" + id +
        ", tweetId=" + tweetId +
        ", readCount=" + readCount +
        ", collectCount=" + collectCount +
        ", praiseCount=" + praiseCount +
        ", status=" + status +
        ", insertDate=" + insertDate +
        ", lastDate=" + lastDate +
        "}";
    }
}
